#ifndef CUBE_H
#define CUBE_H
#include "Objet.h"
#include "Point.h"
#include "Intersection.h"
#include "Rayon.h"
#include "Vecteur.h"
#include <cfloat>
#include <cmath>
#include <stdlib.h>

class Cube : public Objet {

protected:

	float demiArete;
	Point centre;

public:

	Cube() {}
	~Cube() {}
	Cube(float a, const Point& c):demiArete(a/2), centre(c){boite = BoiteEnglobante(a, a, a, centre);}

	void intersection(const Rayon &,Intersection &);
	bool ombre(const Rayon &, double);

};
#endif